#include "GPScomm.h"
#pragma once
#include "afxwin.h"
#include "GPSwSmartPhone.h"

// DeviceChooserDialog dialog

class DeviceChooserDialog : public CDialog
{
	DECLARE_DYNAMIC(DeviceChooserDialog)
public:
	DeviceChooserDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~DeviceChooserDialog();


// Dialog Data
	enum { IDD = IDD_DEVICE_CHOOSER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnMenuPickgpsdevices();
	void OnOK();
	CListBox availDevices;
	afx_msg void OnBnClickedRefresh();
	afx_msg void OnBnClickedButton1();
	CListBox devicesToUse;
	afx_msg void OnBnClickedButton2();
	void SetCommsObject(GPScomm *);
private:
	GPScomm *gps;
public:
	afx_msg void OnLbnSelchangeavailabledevices();
};
